<?php

namespace App\HttpController\XAppSystem\Test\Admin;


use App\Common\WX\Api\ApiBase;
use App\Common\WX\Api\OfficialAccount;
use App\HttpController\ControllerBase;
use App\Model\t_s_app;

//http://php.x.siyoumi.com/test/admin/test__index
class TestIndex extends ControllerBase
{
    public function index()
    {
        $this->funcSetX('1');

        $app = new OfficialAccount();
        $r = $app->funcGetAccessToken();

        $this->writeJson(200, $r);
    }
}